<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>

    let obj = {
      name: 'tom',
      age: 18,
      other: {
        height: 180,
        weight: 160
      }
    }
    let obj1 = { ...obj }
    obj1.other.run = 'faster'
    console.log('obj:', obj)
    console.log('obj1:', obj1)
  </script>

</body>

</html>